Law of Cosines

The law of cosines is a geometrical theorem which relates the lengths of the sides of a triangle with the measure of the angles opposite to them. It is also known as the cosine formula or the cosine rule. The theorem is particularly useful when the calculation of the length of one of the sides of a triangle is required, or when the calculation of one of the angles of a triangle is required.

Statement of the Law of Cosines

The law of cosines can be stated as follows:

In a triangle with sides of length aa, bb, and cc, and angles opposite to those sides with measures α\alpha, β\beta, and γ\gamma respectively, the law of cosines states that:

a2=b2+c22bccosαa^2 = b^2 + c^2 - 2bc\cos\alpha

b2=a2+c22accosβb^2 = a^2 + c^2 - 2ac\cos\beta

c2=a2+b22abcosγc^2 = a^2 + b^2 - 2ab\cos\gamma

Deriving the Law of Cosines

The law of cosines can be derived from the Pythagorean theorem. Consider the triangle ABC\triangle ABC with sides of length aa, bb, and cc opposite to angles α\alpha, β\beta, and γ\gamma respectively, as shown in the figure below.

Triangle ABC

By the Pythagorean theorem, we have:

(AB)2+(BC)2=(AC)2(AB)^2 + (BC)^2 = (AC)^2

Substituting the values of ABAB, BCBC, and ACAC in terms of aa, bb, and cc, and multiplying both sides by cos2γ\cos^2\gamma, we get:

(acosγ)2+(cbcosγ)2=(bsinγ)2(a\cos\gamma)^2 + (c-b\cos\gamma)^2 = (b\sin\gamma)^2

On simplifying, we get:

a2cos2γ+c22bccosγ+b2cos2γ2bccosγ+a2sin2γ=b2sin2γa^2\cos^2\gamma + c^2 - 2bc\cos\gamma + b^2\cos^2\gamma - 2bc\cos\gamma + a^2\sin^2\gamma = b^2\sin^2\gamma

Using the identity sin2γ=1cos2γ\sin^2\gamma = 1 - \cos^2\gamma, we get:

a2cos2γ+c22bccosγ+b2cos2γ2bccosγ+a2(1cos2γ)=b2(1cos2γ)a^2\cos^2\gamma + c^2 - 2bc\cos\gamma + b^2\cos^2\gamma - 2bc\cos\gamma + a^2(1-\cos^2\gamma) = b^2(1-\cos^2\gamma)

On simplifying, we get:

a2=b2+c22bccosγa^2 = b^2 + c^2 - 2bc\cos\gamma

Thus, we have derived the law of cosines for angle γ\gamma. Similarly, by considering the other two angles of the triangle, we can derive the law of cosines for those as well.

Applications of the Law of Cosines

The law of cosines has a wide variety of applications in mathematics, physics, engineering, and other fields. Here are some examples of its applications:

  • Finding the length of a side in a triangle for which the other two sides and an angle are known.
  • Finding the angles of a triangle for which the lengths of the three sides are known.
  • In navigation, the law of cosines is used to determine the distance between any two points on the surface of the Earth, given their latitudes and longitudes.
  • In physics, the law of cosines is used to determine the force between two objects that are not directly facing each other, such as two planets in orbit around a star.

Conclusion

The law of cosines is a powerful geometrical theorem that relates the sides and angles of a triangle. It can be derived from the Pythagorean theorem and has a wide range of applications in mathematics, physics, engineering, and other fields.

余弦定理[JA]